<template>
  <div id="app">
    <v-header :seller="seller" />
  </div>
</template>
<script>
import VHeader from 'components/v-header/v-header'
import { getSeller } from './api'

export default {
  name: 'app',
  data () {
    return {
      seller: {}
    }
  },
  created () {
    this._hgetSeller()
  },
  methods: {
    _hgetSeller () {
      getSeller().then(seller => {
        console.log(seller, 'seller')
        this.seller = seller
      })
    }
  },
  components: {
    VHeader
  }
}
</script>

<style lang="scss">
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
#nav {
  padding: 30px;
  a {
    font-weight: bold;
    color: #2c3e50;
    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
